<template>
	<view>
		<view class="head">
			<u-search placeholder="日照香炉生紫烟" v-model="keyword"></u-search>
		</view>
		<view class="tabs">
			 <u-tabs :list="list1" @click="click" :activeStyle="{
							color: '#3681F3',
							fontWeight: 'bold',
							transform: 'scale(1.05)'
						}"
						:inactiveStyle="{
							color: '#999999',
							transform: 'scale(1)',
						}"
						itemStyle="padding:0 18px; height: 34px;"></u-tabs>
		</view>
		<view class="dingdan">
			<view class="diaodian" v-for="item of 3" :key="" @click="jlbDetail">
				<view class="diaoyu">
					<view class="le">
						<image src="../../static/logo.png" mode=""></image>
					</view>
					<view class="rig">
						<view class="jlb">钓鱼岛二哥垂钓俱乐部</view>
						<view class="lei">
							<view class="ly">路亚</view>
							<view class="td">台钓</view>
							<view class="kzs" style="background-color: #F67A4F; width: 87rpx;">可住宿</view>
						</view>
						<view class="jl">
							<image src="../../static/dingwei01.png" mode=""></image>
							<span>四川省成都市双流区安中路100米</span>
						</view>
						<view class="yu">
							<span style="color: #333333;">鱼种：</span>草鱼、鲤鱼、草鱼、青鱼100米
						</view>
						<view class="sf">
							收费：150/天
						</view>
					</view>
					
				</view>
				
				<view class="gn">
					<view class="" v-if="" style="border: none;">
						
					</view>
					<view @click="dawo">查看打窝</view>
					<view @click="refund">申请退款</view>
					<view style="background-color: #3681F3; color: #fff;">核销码</view>
					<view @click="detail" v-if="current ==3">查看详情</view>
				</view>
				
				</view>
				
		</view>
			
	</view>
</template>

<script>
	export default {
		data() {
			return {
				keyword:'',
				list1:[
					{name:'全部'},
					{name:'待支付'},
					{name:'待核销'},
					{name:'已完成'},
					{name:'已取消'},
				],
				current:0,
			};
		},
		methods:{
			dawo(){
				uni.navigateTo({
					url:('/pages/index/brood')
				})
			},
			refund(){
				uni.navigateTo({
					url:('/pages/index/refund')
				})
			},
			detail(){
				uni.navigateTo({
					url:('/pages/index/detail')
				})
			},
			// 点击事件
			click(item) {
				
				this.current = item.index
					console.log('item', item,this.current);
			},
			jlbDetail(){
				uni.navigateTo({
					url:('/pages/index/jlbDetail')
				})
			}
				
		}
	}
</script>

<style lang="scss">
	.pages{
		background-color: #f7f7f7;
	}
	.head{
		padding: 0 27rpx;
	}
	.dingdan{
		margin: 27rpx;
		background-color: #f7f7f7;	
	}
	.diaodian{
		background-color: #fff;
		margin: 20rpx 0;
		border-radius: 20rpx;
		padding-bottom: 20rpx;
	}
	.diaoyu{
		display: flex;
		// justify-content: space-between;
		
	}
	.le{
		margin: 36rpx 20rpx;
		image{
			width: 200rpx;
			height: 160rpx;
		}
	}
	.rig{
		margin: 20rpx ;
		font-weight: 500;
		font-size: 24rpx;
		color: #666666;
	}
	.jlb{
		font-weight: bold;
		font-size: 29rpx;
		color: #333333;
	}
	.lei{
		display: flex;
		margin-top: 27rpx;
		>view{
			margin-right: 16rpx;
			width: 67rpx;
			height: 30rpx;
			background: #E0EEFF;
			border-radius: 4rpx;
			// width: 67rpx;
			// height: 30rpx;
			text-align: center;
			line-height: 30rpx;
		}
	}
	.jl{
		margin: 25rpx 0;
		
		image{
			width: 18rpx;
			height: 23rpx;
			// margin-top: 20rpx;
			margin-right: 20rpx;
		}
		span{
			margin-bottom: 20rpx;
		}
	}
	.sf{
		font-weight: bold;
		font-size: 27rpx;
		color: #F01B1B;
		margin-top: 27rpx;
	}
	.gn{
		display: flex;
		justify-content: space-around;
		>view{
			// width: 93rpx;
			// height: 23rpx;
			font-family: PingFang SC;
			font-weight: 500;
			font-size: 24rpx;
			color: #333333;
			width: 147rpx;
			height: 47rpx;
			border-radius: 10rpx;
			border: 1px solid #E6E6E6;
			text-align: center;
			line-height: 47rpx;
		}
	}
</style>
